import {api} from "@/utils/request";


export const getJobListByPage =
    (pageNum:number , pageSize:number , queryDto:any) => {
        return api({
            url: "/recruit/job/findByPage/" + pageNum + "/" + pageSize,
            method: 'get',
            params: queryDto
        })
    }

export const getJobByName =
    (queryDto:any) => {
        return api({
            url: "/recruit/job/getJobByName",
            method: 'get',
            params: queryDto
        })
    }



export const getAllInfo = () => {
        return api({
            url: "/recruit/interview/getAllInfo",
            method: 'get',
        })
    }




export const getJobUserList =
    (data:any) => {
        return api({
            url: "/recruit/deliveryRecord/getAllInfoByJob",
            method: 'get',
        })
    }




export const getAll = () => {
    return api({
        url: "/recruit/job/getAll",
        method: "get",
    })
}


// 新增用户
export const addJob = (data:any) => {
    return api({
        url: "/recruit/job/addJob",
        method: "post",
        data: data
    })
}

export const addInterview = (data:any) => {
    return api({
        url: "/recruit/interview/add",
        method: "post",
        data: data
    })
}




// 修改用户
export const updateJob = (data:any) => {
    return api({
        url: "/recruit/job/updateJob",
        method: "put",
        data: data
    })
}


// //    根据id删除用户
export const deleteJob = (id:any) => {
    return api({
        url: "/recruit/job/deleteJob/"+id,
        method: "delete",
    })
}
